package com.shuqi.database.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import com.shuqi.database.dao.OrmBaseModel;

/**
 * 
 * 书籍目录信息相关字段
 * 
 * @author hxp
 * @date 2014-3-9
 * 
 */
@DatabaseTable(tableName = "book_catalog")
public class BookCataLog extends OrmBaseModel {

    public static final int HAS_PAY = 1; // 1表示已购买
    public static final int NO_PAY = 0;  // 0表示未购买
    
    public static final int UN_IS_CHATPTER = 0;  //0,表示该项是卷
    public static final int IS_CHATPTER = 1;     //1表示该项是章节
    
    public static final int BOOK_FREE = 0;     //0,表示该章节是免费章节
    public static final int BOOK_ALL_BUY = 1;  //1表示全本购买
    public static final int BOOK_CHAPTER_BUY = 2;     //2表示该章节需要按章购买
    
    public static final int HAS_DOWN = 1; //1表示已下载
    public static final int UN_DOWN = 0;//0表示未下载,      
    
    
    
    /** 数据库自增主键 */
    @DatabaseField(generatedId = true)
    private int _id;

    /** 目录章节ID */
    @DatabaseField(columnName = "chapter_id")
    private String chapterId;

    /** 目录章节名称 */
    @DatabaseField(columnName = "chapter_name")
    private String chapterName;

    /** 目录卷名称 */
    @DatabaseField(columnName = "volume_id")
    private String volumeId;

    /** 是否是章节*/
    @DatabaseField(columnName = "chapter_state")
    private int chapterState;

    /** 目录章节下载状态 */
    @DatabaseField(columnName = "download_state")
    private int downloadState;

    /** 目录章节付费模式 */
    @DatabaseField(columnName = "pay_mode")
    private int payMode;

    /** 目录章节付费价格 */
    @DatabaseField(columnName = "chapter_price")
    private String chapterPrice;

    /** 目录章节付费状态 */
    @DatabaseField(columnName = "pay_state")
    private int payState;

    /** 目录章节内容URL*/
    @DatabaseField(columnName = "chapter_content_url")
    private String chapterContentUrl;

    /** 目录章节来源URL*/
    @DatabaseField(columnName = "chapter_source_url")
    private String chapterSourceUrl;

    /** 目录章节字数*/
    @DatabaseField(columnName = "chapter_word_count")
    private long chapterWordCount;
    
    /** 目录章节索引*/
    @DatabaseField(columnName = "oid")
    private int oId;

    /** 目录书籍ID*/
    @DatabaseField(columnName = "book_id")
    private String bookId;
    
    /** 目录书籍来源ID*/
    @DatabaseField(columnName = "source_id")
    private String sourceId;

    /** 目录书籍USERID*/
    @DatabaseField(columnName = "user_id")
    private String userId;

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(String volumeId) {
        this.volumeId = volumeId;
    }

    public int getChapterState() {
        return chapterState;
    }

    public void setChapterState(int chapterState) {
        this.chapterState = chapterState;
    }

    public int getDownloadState() {
        return downloadState;
    }

    public void setDownloadState(int downloadState) {
        this.downloadState = downloadState;
    }

    public int getPayMode() {
        return payMode;
    }

    public void setPayMode(int payMode) {
        this.payMode = payMode;
    }

    public String getChapterPrice() {
        return chapterPrice;
    }

    public void setChapterPrice(String chapterPrice) {
        this.chapterPrice = chapterPrice;
    }

    public int getPayState() {
        return payState;
    }

    public void setPayState(int payState) {
        this.payState = payState;
    }

    public String getChapterContentUrl() {
        return chapterContentUrl;
    }

    public void setChapterContentUrl(String chapterContentUrl) {
        this.chapterContentUrl = chapterContentUrl;
    }

    public String getChapterSourceUrl() {
        return chapterSourceUrl;
    }

    public void setChapterSourceUrl(String chapterSourceUrl) {
        this.chapterSourceUrl = chapterSourceUrl;
    }

    public long getChapterWordCount() {
        return chapterWordCount;
    }

    public void setChapterWordCount(long chapterWordCount) {
        this.chapterWordCount = chapterWordCount;
    }
    
    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getOId() {
        return oId;
    }

    public void setOId(int oId) {
        this.oId = oId;
    }


}
